Skip to content

Conversation

stevensJourney
Copy link
Contributor

Overview

This applies the latest watched query updates from powersync-ja/powersync-kotlin#136.

The current Query protocol is a bit verbose due to handling optional function parameters. Watched queries now support an optional throttleMs parameter. Adding this new param to the current structure would require a function definition for every possible permutation of optional arguments. A new struct based approach has been added for the watch method, this handles optional arguments better.

simolus3
simolus3 previously approved these changes Mar 6, 2025
Copy link
Contributor

@simolus3 simolus3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Swift API changes look good to me. We can release the workaround for now, but I think we should look into other approaches that will be able to catch all exceptions.

@stevensJourney stevensJourney marked this pull request as ready for review March 6, 2025 12:53
@stevensJourney stevensJourney requested a review from simolus3 March 6, 2025 12:53
@stevensJourney stevensJourney merged commit 9cb306f into main Mar 6, 2025
1 check passed
@stevensJourney stevensJourney deleted the watches branch March 6, 2025 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants